<div class="mt15">
    <input type="text" data-ng-model="keyword" class="input-text fl mr5 w310 c-gray" placeholder="请输入活动名称" data-ng-enter="getActivitys({}, keyword)">
    <span><a href="javascript:;" class="btn" ng-click="getActivitys({}, keyword)">搜索</a></span>
</div>
<div class="grid-header mt15 clearfix">
    <span class="fl f14 lh30 text-indent">活动列表</span>
    <div class="fr">
        <a href="javascript:;" class="btn mr5" ng-click="createActivity()">新增活动</a>
        <a href="javascript:;" class="btn btn-yellow" ng-click="viewExpandBill()">查看拓客台账</a>
    </div>
    <div class="tab-bottom-line"></div>
</div>
<div class="sheet active_list mt10">
    <table width="100%">
        <thead>
        <tr class="thead ta-l">
            <th height="34" width="50" style="text-align: center">
               序号
            </th>
            <th style="text-align: center">活动名称</th>
            <th style="text-align: center">活动类型</th>
            <th style="text-align: center" width="150">活动结果</th>
            <th style="text-align: center">活动状态</th>
            <th style="text-align: center">操作</th>
        </tr>
        </thead>
        <tbody>
         <tr ng-repeat="activity in activityList">
            <td>{{pager.pageSize * ((pager.pageIndex || 1) - 1) + $index + 1}}</td>
            <td class="lh24">
                <p class="text-left">{{activity.act_name}}</p>
                <p class="text-left c-gray"><i class="clock_icon fl mr5"></i>{{activity.start_time}} 至 {{activity.end_time}}</p>
                <p class="text-left c-gray"><i class="location_icon fl mr5"></i>{{activity.address}}</p>
            </td>
            <td>{{activity.type_name}}</td>
            <td>
                <div  class="relative">
                    <div ng-class="{'uncompleted': activity.act_tkl < activity.target, 'completed': activity.act_tkl >= activity.target}"></div>
                    <em class="c-red">{{activity.act_tkl}}</em>/{{activity.target}}
                </div>
            </td>
            <td>{{activity.status}}</td>
            <td width="80">
                <a class="c-orange" ng-click="viewActivity(activity.t_activityId)">查看</a>
                <a class="c-orange" ng-click="editActivity(activity.t_activityId)">编辑</a>
                <a href="javascript:;" title="删除" class="c-orange"
                    ui-confirm 
                    ui-confirm-title="删除" 
                    ui-confirm-ok="deleteActivity(activity)"
                    ui-confirm-message="确定删除该成员？">删除</a>
            </td>
        </tr>

        </tbody>
    </table>
    <div class="no-data border" ng-cloak ng-show="!activityList || !activityList.length"><span>暂无数据</span></div>
</div>
<div ui-pagination
    page-index="pager.pageIndex" 
    page-size="pager.pageSize"
    total="pager.total"
    changed="pager.changed($pageIndex)" ng-show="activityList && activityList.length"></div>



